<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="cn">
<head>
	<meta charset="UTF-8">
	<title><?php echo ($title); ?></title>
    <link rel="stylesheet" href="/Public/css/bootstrap.min.css">
    <link rel="stylesheet" href="/Public/my.css">

</head>
<body>
	<div class="container">
	<h1><span class="glyphicon glyphicon-user"></span><?php echo ($title); ?></h1>
	<div class="center-block mt20">
	    <a href="<?php echo U('index');?>" class="btn btn-info">首页</a>
	    <a href="<?php echo U('add');?>" class="btn btn-success">添加</a>

	</div>	


<table class="table table-hover mt20">
	<tr>
		<td>ID</td>
		<td>名字</td>
		<td>性别</td>
		<td>年龄</td>
		<td>住址</td>
		<td>操作</td>


	</tr>
	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
		<td><?php echo ($v["id"]); ?></td>
		<td><?php echo ($v["name"]); ?></td>
		<td>
			<?php if($v["sex"] == '0'): ?>女
			<?php elseif($v["sex"] == '1'): ?>男
			<?php else: ?>保密<?php endif; ?>
		</td>
		<td><?php echo ($v["age"]); ?></td>
		<td><?php echo ($v["province"]); ?></td>

<td class="col-md-2">
<a href="<?php echo U('edit',array('id'=>$v['id']));?>" class="btn btn-primary">编辑</a>
<a href="<?php echo U('del',array('id'=>$v['id']));?>" class="btn btn-danger">删除</a>	
</td>

	</tr><?php endforeach; endif; else: echo "" ;endif; ?>

</table>

	</div>
<script src="/Public/js/jquery.min.js"></script>
<script src="/Public/js/bootstrap.min.js"></script>
	
</body>
</html>